/*
 * BankAccountDetailsDialog.java
 *
 *  
 */
package org.msb.finance.app;

import static java.awt.GridBagConstraints.HORIZONTAL;
import static java.awt.GridBagConstraints.NONE;
import static java.awt.GridBagConstraints.NORTHWEST;

import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.Window;

import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JTextField;

/**
 * 
 * 
 * @author Marc Boudreau
 * 
 */
@SuppressWarnings("serial")
public class BankAccountDetailsDialog extends AccountDetailsDialog {

	/*
	 * 
	 */
	private JTextField startBalanceField;

	/*
	 * 
	 */
	private JTextField overdraftField;

	/*
	 * 
	 */
	private JComboBox currencyCombo;

	/**
	 * @param owner
	 */
	public BankAccountDetailsDialog(Window owner) {
		super(owner);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.msb.finance.app.AccountDetailsDialog#addAccountTypeSpecificsToContentPane(javax.swing.JComponent)
	 */
	@Override
	protected void addAccountTypeSpecificsToContentPane(JComponent contentPane, int row) {
		JLabel label = new JLabel(FinanceApp.getMessageResources().getString(
				"dialog.bankaccountdetails.startbalance.caption")); //$NON-NLS-1$
		contentPane.add(label, new GridBagConstraints(0, row, 1, 1, 0.0, 0.0, NORTHWEST, NONE, new Insets(5, 0, 0, 0),
				0, 0));

		this.startBalanceField = new JTextField(10);
		contentPane.add(this.startBalanceField, new GridBagConstraints(1, row++, 1, 1, 0.0, 0.0, NORTHWEST, NONE,
				new Insets(5, 5, 0, 0), 0, 0));

		label = new JLabel(FinanceApp.getMessageResources().getString("dialog.bankaccountdetails.overdraft.caption")); //$NON-NLS-1$
		contentPane.add(label, new GridBagConstraints(0, row, 1, 1, 0.0, 0.0, NORTHWEST, NONE, new Insets(5, 0, 0, 0),
				0, 0));

		this.overdraftField = new JTextField(10);
		contentPane.add(this.overdraftField, new GridBagConstraints(1, row++, 1, 1, 0.0, 0.0, NORTHWEST, NONE,
				new Insets(5, 5, 0, 0), 0, 0));

		label = new JLabel(FinanceApp.getMessageResources().getString("dialog.bankaccountdetails.currency.caption")); //$NON-NLS-1$
		contentPane.add(label, new GridBagConstraints(0, row, 1, 1, 0.0, 0.0, NORTHWEST, NONE, new Insets(5, 0, 0, 0),
				0, 0));

		this.currencyCombo = new JComboBox();
		contentPane.add(this.currencyCombo, new GridBagConstraints(1, row++, 1, 1, 0.0, 0.0, NORTHWEST, HORIZONTAL,
				new Insets(5, 5, 0, 0), 0, 0));

	}

}
